{% extends 'base.html' %}
        {% block order %}

			<nav class="navbar navbar-default" role="navigation">
				<div class="navbar-header">
					 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#"><span class="glyphicon glyphicon-qrcode"></span>&nbsp;订单确认:</a>
				</div>

			</nav>
			<div class="row clearfix">
				<div class="col-md-8 column">
                    <hr>
					<h3>
						配送信息:
					</h3>
                    <hr>
					<p>
                        <b>配送地址:</b>
                        {% if user.address != '0' %}
                            {{ user.address }}
                        {% endif %}
                        <span style="color: red;">{{ error_address }}</span><br>
                        <b>取餐人:</b> {{ user.username }}<br>
                        <b>联系电话:</b>
                        {% if user.tel != '0' %}
                            {{ user.tel }}
                        {% endif %}
                        <span style="color: red;">{{ error_tel }}</span>
					</p>
					<p>
						 <a class="btn" href="/logreg/user_data/">去修改 »</a>
					</p>
                    <hr>
					<h3>
						支付方式:
					</h3>
                    <hr>
					<table class="table">
						<thead>
							<tr>
								<th>
									<span style="color: red;">*</span>&nbsp;请选择>>&nbsp;<span style="color: red;font-size: 13px;">{{ error_pay }}</span>
								</th>
								<th>

								</th>
								<th>

								</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>
									<img width="150" class="ali_wechat" name="alipay" id="ali" src="../media/images/支付宝.gif">
                                    &nbsp;
                                    <img width="142" class="" name="wechat" id="wei" src="../media/images/微信.gif">
								</td>

							</tr>
						</tbody>
					</table>
				</div>
				<div class="col-md-4 column">
					<h3>
						订单详情:
					</h3>
					<table class="table">
						<thead>
							<tr>

                                <th>
									品名
								</th>
								<th>
									单价
								</th>
                                <th>
									数量
								</th>
							</tr>
						</thead>
						<tbody>
                        {% for foo in food_all %}
							<tr>
								<td>
									<img src="{{ foo.img }}" width="20">&emsp;{{ foo.food_name }}
								</td>
								<td>
									{{ foo.food_money }}元
								</td>
								<td>
									&nbsp;{{ foo.food_num }}

								</td>
							</tr>
                        {% endfor %}
						</tbody>
                        <thead>
							<tr>
								<th style="text-align: right;" colspan="4">
									合计:<b style="color: red;font-size: 25px;">{{ order_money }}</b>元
								</th>
						</thead>
					</table>
                    <a id="go_pay" href="/order/order_views/">
                        <button type="button" class="btn btn-danger btn-block"><span class="glyphicon glyphicon-credit-card" style="font-size: 12px"></span>&nbsp;去支付</button>
                    </a>
                    <p></p>
                    <a href="/order/car/">
                        <button type="button" class="btn btn-success btn-block">
                        <span class="glyphicon glyphicon-share-alt" style="font-size: 12px"></span>&nbsp;返回购物车修改
                        </button>
                    </a>
				</div>
			</div>
            <form action="" method="post">
                {% csrf_token %}
                <input type="hidden" name="pay_def">
            </form>

        {% endblock %}

